Skip to content

feature: Manage package versions from sidebar#1511

Open
edvilme wants to merge 14 commits into
mainfrom
vscode-python-environments-package-versions
Open

feature: Manage package versions from sidebar#1511
edvilme wants to merge 14 commits into
mainfrom
vscode-python-environments-package-versions

Conversation

@edvilme
Copy link
Copy Markdown
Contributor

@edvilme edvilme commented May 8, 2026

This pull request adds a new "Manage Package Version" command to the Python Envs extension, allowing users to update the version of an installed package via the UI.

Steps

1. Select "Manage Package Version" in packages view.

Click on the new gear button next to each package to manage versions.
image

2a. Select the desired version

For package managers that support it (conda, uv, pip >= 21.2.0), the extension fetches all available versions from the index and displays them in a picker.
image

2b. Type the desired version

If the package versions cannot be fetched, the extension prompts the user to type in the desired version
image

User is warned if input is not a correct version number.

image

Fixes #1368
Fixes #512

@edvilme edvilme marked this pull request as draft May 8, 2026 03:19
@edvilme
Copy link
Copy Markdown
Contributor Author

edvilme commented May 8, 2026

The end goal is to have a version picker list all the available versions package in the feed (may or may not be PyPI) which requires further design discusisons.

@edvilme edvilme added the feature-request Request for new features or functionality label May 8, 2026
return undefined;
}

// uv - Run pip through pipx
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running through uvx as support for pip index versions is not natively implemented yet. Following astral-sh/uv#17809

This comment was marked as resolved.

@edvilme edvilme requested a review from Copilot May 11, 2026 20:57

This comment was marked as resolved.

This comment was marked as resolved.

@edvilme edvilme force-pushed the vscode-python-environments-package-versions branch from d7a4d09 to 05f44f3 Compare May 12, 2026 00:06
@edvilme edvilme force-pushed the vscode-python-environments-package-versions branch from 05f44f3 to f47f4f3 Compare May 12, 2026 00:07
@edvilme edvilme marked this pull request as ready for review May 12, 2026 16:29
@edvilme edvilme requested a review from Copilot May 12, 2026 16:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 17 changed files in this pull request and generated 7 comments.

Files not reviewed (1)
  • api/package-lock.json: Language not supported

Comment thread src/api.ts
Comment thread src/api.ts Outdated
Comment thread src/features/envCommands.ts
Comment thread src/managers/builtin/pipManager.ts
Comment thread package.json
Comment thread api/src/main.ts
Comment thread api/src/main.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature-request Request for new features or functionality

Projects

None yet

2 participants